<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Nabu-asr: nabu.processing.tfreaders.tfreader.TfReader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Nabu-asr
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacenabu.html">nabu</a></li><li class="navelem"><b>processing</b></li><li class="navelem"><b>tfreaders</b></li><li class="navelem"><b>tfreader</b></li><li class="navelem"><a class="el" href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.html">TfReader</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">nabu.processing.tfreaders.tfreader.TfReader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>class for reading tfrecord files and processing them  
 <a href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for nabu.processing.tfreaders.tfreader.TfReader:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.png" usemap="#nabu.processing.tfreaders.tfreader.TfReader_map" alt=""/>
  <map id="nabu.processing.tfreaders.tfreader.TfReader_map" name="nabu.processing.tfreaders.tfreader.TfReader_map">
<area href="classnabu_1_1processing_1_1tfreaders_1_1alignment__reader_1_1AlignmentReader.html" title="reader for kaldi alignments " alt="nabu.processing.tfreaders.alignment_reader.AlignmentReader" shape="rect" coords="0,112,410,136"/>
<area href="classnabu_1_1processing_1_1tfreaders_1_1audio__feature__reader_1_1AudioFeatureReader.html" title="reader for audio features " alt="nabu.processing.tfreaders.audio_feature_reader.AudioFeatureReader" shape="rect" coords="420,112,830,136"/>
<area href="classnabu_1_1processing_1_1tfreaders_1_1binary__reader_1_1BinaryReader.html" title="reader for binary sequences " alt="nabu.processing.tfreaders.binary_reader.BinaryReader" shape="rect" coords="840,112,1250,136"/>
<area href="classnabu_1_1processing_1_1tfreaders_1_1string__reader_1_1StringReader.html" title="a reader for reading and encoding text data " alt="nabu.processing.tfreaders.string_reader.StringReader" shape="rect" coords="1260,112,1670,136"/>
<area href="classnabu_1_1processing_1_1tfreaders_1_1string__reader__eos_1_1StringReaderEOS.html" title="a reader for reading and encoding text data that adds a eos token at the end of every sequence ..." alt="nabu.processing.tfreaders.string_reader_eos.StringReaderEOS" shape="rect" coords="1680,112,2090,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3382f40061dd480e266f703985dbf6bb"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.html#a3382f40061dd480e266f703985dbf6bb">__init__</a> (self, datadirs)</td></tr>
<tr class="memdesc:a3382f40061dd480e266f703985dbf6bb"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.html" title="class for reading tfrecord files and processing them ">TfReader</a> constructor.  <a href="#a3382f40061dd480e266f703985dbf6bb">More...</a><br /></td></tr>
<tr class="separator:a3382f40061dd480e266f703985dbf6bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc019352b2f59b17c3f6fc04077c3fa"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.html#abbc019352b2f59b17c3f6fc04077c3fa">__call__</a> (self, queue, name=None)</td></tr>
<tr class="memdesc:abbc019352b2f59b17c3f6fc04077c3fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">read all data from the queue  <a href="#abbc019352b2f59b17c3f6fc04077c3fa">More...</a><br /></td></tr>
<tr class="separator:abbc019352b2f59b17c3f6fc04077c3fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a15156a402379f5964e36e11d66f33704"><td class="memItemLeft" align="right" valign="top"><a id="a15156a402379f5964e36e11d66f33704"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>metadata</b></td></tr>
<tr class="separator:a15156a402379f5964e36e11d66f33704"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed7fa2979a57c096ef1c18f984f51ed2"><td class="memItemLeft" align="right" valign="top"><a id="aed7fa2979a57c096ef1c18f984f51ed2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>features</b></td></tr>
<tr class="separator:aed7fa2979a57c096ef1c18f984f51ed2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a323178864e85edb57555f020ad236794"><td class="memItemLeft" align="right" valign="top"><a id="a323178864e85edb57555f020ad236794"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>reader</b></td></tr>
<tr class="separator:a323178864e85edb57555f020ad236794"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>class for reading tfrecord files and processing them </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3382f40061dd480e266f703985dbf6bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3382f40061dd480e266f703985dbf6bb">&sect;&nbsp;</a></span>__init__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.processing.tfreaders.tfreader.TfReader.__init__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>datadirs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classnabu_1_1processing_1_1tfreaders_1_1tfreader_1_1TfReader.html" title="class for reading tfrecord files and processing them ">TfReader</a> constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">datadirs</td><td>the directories where the metadata was stored as a list of strings </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="abbc019352b2f59b17c3f6fc04077c3fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc019352b2f59b17c3f6fc04077c3fa">&sect;&nbsp;</a></span>__call__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.processing.tfreaders.tfreader.TfReader.__call__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>queue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>name</em> = <code>None</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>read all data from the queue </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queue</td><td>a queue containing filenames of tf record files </td></tr>
    <tr><td class="paramname">name</td><td>the name of the operation</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pair of tensor and sequence length </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="tfreader_8py.html">tfreader.py</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
